package com.shigu.linkage.sdks.responses;

import com.alibaba.fastjson.JSONObject;

public class LinkageResponse {
    private String errorCode;//结果码
    private String errorMessage;//结果码描述

    public boolean isSuccess(){
        return errorCode!=null&&errorCode.equals("0");
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String resultBody(){
        return JSONObject.toJSONString(this);
    }
}
